package com.lyeducation.entities.course.middle;

import javax.persistence.*;

/**
 * @ClassName CategoryCourseEntity
 * @Description
 * @Author Sky1in3
 * @Date 2019/1/27 17:36
 * @Version 1.0
 */
@Entity
@Table(name = "category_course")
@IdClass(CategoryCourseEntityPK.class)
public class CategoryCourseEntity {
    /**
     * 类目id
     */
    private String categoryId;

    /**
     * 课程id
     */
    private String courseId;

    @Id
    @Column(name = "categoryId", nullable = false, length = 18)
    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    @Id
    @Column(name = "courseId", nullable = false, length = 18)
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }
}
